@extends('host.common.store.common')
@section('content')
    <div class="homepage-m-r">
        <div class="m-r-title">
            <div class="f16 ml10 lh40" style="margin-left: 10px;color: #894923;line-height: 40px;">供应信息</div>
        </div>
        <div class="supply-info-list" style="margin-top: 18px;">
            <div class="head">
                <ul class="clearfix">
                    <li class="wb30">产品</li>
                    <li class="wb10">
                        单价
                        <a href="javascript:void(0)"></a>
                    </li>
                    <li class="wb10">
                        数量
                        <a href="javascript:void(0)"></a>
                    </li>
                    <li class="wb10">
                        起订量
                        <a href="javascript:void(0)"></a>
                    </li>
                    <li class="wb20">发布日期</li>
                    <li class="wb10">供应商地址</li>
                    <li class="wb10"></li>
                </ul>
            </div>

            <div id="info-list-box" class="head-main"> </div>

            <div id="comm-paging" class="comm-paging mb10" style="float:right;"></div>
        </div>
    </div>


    <script type="text/template" id="info-template">
        <% _.each(obj, function(item){%>
        <ul class="clearfix">
            <li class="wb30 c-yer f14" title="<%=item.name %>">
                <%=item.proname %>
            </li>
            <li class="wb10 f18 b002">
                <%=item.price %>
            </li>
            <li class="wb10 c-666 f14">
                <%=item.num %>
            </li>
            <li class="wb10 c-666 f14">
                <%=item.minnum %>
            </li>
            <li class="wb20 f14 c-999">
                <%=item.time %>
            </li>
            <li class="wb10 c-999 f14">
                <%=item.addr %>
            </li>
            <li class="wb10">
                <span class="btn btn-warn btn-w60x32  enquiry-btn" code="<%=item.id%>" maxsupply="<%=item.num%>">
                  询盘
                 </span>
            </li>
        </ul>
        <% });%>
    </script>
    <script type="text/template" id="supply_offer_templ">
        <form id="supper_offer_sub" method="post" action="{{route('provider.save')}}" code="">
            <input type="hidden" value="{{csrf_token()}}" name="_token">
            <div class="dialog-div">
                <div class="enquiry-input1 enquiry">
                    <input type="text" placeholder="请输入采购数量" name="amount">
                    <span class="f14 c-999 ml10">单位：件</span>
                    <input id="offer_id" name="offer_id" style="display: none" type="text" value="">
                    <input id="max_offer" name="max_offer" style="display: none" type="text" value="">
                </div>
                <div class="enquiry-select mt10 enquiry">
                    <select id="province" name="province_id"></select>
                    <select id="city" name="city_id"></select>
                    <select id="county" name="county_id"></select>
                </div>
                <div class="enquiry-input mt10 enquiry">
                    <input type="text" placeholder="请输入联系人姓名" name="contact_name"></div>
                <div class="enquiry-input mt10 enquiry">
                    <input type="text" placeholder="请输入联系人手机号码" name="contact_phone"></div>
                <div class="tc mt15">
                    <input  type="submit" value="询盘" class="btn btn-warn btn-w140x40 lh25" id="inquiry"></div>
                <div class="b002 lh20 mt10 " style="width:340px;overflow:hidden">提示：以上为必填项。</div>
            </div>
        </form>
    </script>
    <script type="text/template" id="addr-option-templ">
        <option value="">请选择</option>
        <% _.each(obj, function(item){ %>
        <option value="<%=item.code %>">
            <%=item.text %></option>
        <% }); %>
    </script>
    <script type="text/javascript" src="/assets/b2b/js/libs/dialog-min.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/jquery.validate.min.js"></script>
    <script type="text/javascript" src="/assets/b2b/js/libs/messages_zh.js"></script>
    <script src="/assets/b2b/js/pageModules/common/C14.js"></script>
@stop